package com;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
//等价于同时使用@Configuration @EnableAutoConfiguration @ComponentScan
//含有这些注解的默认属性
@SpringBootApplication
//@EnableScheduling//启用定时任务
public class test {
    //程序入口
	public static void main(String[] args) {
		SpringApplication.run(test.class, args);
		System.out.println("****");
	}
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	
	// redis 连接本地连接
	/*public static void main(String[] args) {
		Jedis redis = new Jedis("127.0.0.1",6379);//脸上服务端
		
		System.out.println("redis服务端连接成功！  "+redis.ping());
		redis.close();
	}*/
	
	//对String 进行操作
	//
	/*public static void main(String[] args){
		testString();
	}
	static  void testString(){
		Jedis redis = new Jedis("127.0.0.1",6379);
		redis.set("userName", "杨成龙");//设置
		redis.append("userName", "是个臭小子");//追加
		System.out.println(redis.get("userName"));
		System.out.println("redis小黑窗  "+redis.get("bb"));
		// redis.del("bb");//删除
		redis.mset("userName", "小强","passWord","123");
		
		System.out.println(redis.incr("age"));//自增长
		
		redis.close();
	}*/
	
	//redis 对map集合的操作
	/*public static void main(String[] args){
		testString();
	}
	static  void testString(){
		Jedis redis = new Jedis("127.0.0.1",6379);
		Map<String,String> map = new HashMap<String,String>();
		map.put("user", "zhangsan");
		map.put("pwd", "123");
		map.put("age", "12");
		redis.hmset("map",map);
		
		Map<String,String> myMap = redis.hgetAll("map");
		for(Map.Entry<String, String> item:myMap.entrySet()){
			System.out.println(item.getKey()+" : "+item.getValue());
		}
		redis.close();
	}
	*/
	
}
